<template>
  <div>

    <el-image :src="src" class="img-container">
      <div slot="error" class="image-slot">
        <img src="./head.jpg">
      </div>
    </el-image>

  </div>
</template>

<script>
export default {
  name: 'ImgHolder',
  props: {
    src: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.img-container{
  border-radius: 50%;
  ::v-deep img{
    width: 100px;
    height: 100px;
  }
}
</style>
